package 多线程.创建;

public class Main {
    public static void main(String[] args) {

        /* Example01 example01 = new Example01();
        example01.start();
        while (true){
            System.out.println("main线程在运行");
        }*/

        Example02 example02 = new Example02();
        Thread thread = new Thread(example02, "多线程");
        thread.start();
        while (true){
            System.out.println("main线程在运行");
        }

    }
}
